package com.springs.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@Component
@Scope("singleton")
public class User {
    /**
     * 相当于<property name="name" value="123456"/>
     */

    @Value("我的名字")
    private String name;


}
